package com.imooc.sell.VO.pan;

import com.imooc.sell.dataobject.Remark;

import java.util.List;

/**
 * 该类是Remark的包装类，在查询所有评论，和根据订单Id查询评论时做返回值
 */
public class RemarkResult {
    /*状态码*/
    private int mcode;
    /*状态信息*/
    private String msg;
    /*查询到的所有评论数据*/
    private List<Remark> remarkList;

    public int getMcode() {
        return mcode;
    }

    public void setMcode(int mcode) {
        this.mcode = mcode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<Remark> getRemarkList() {
        return remarkList;
    }

    public void setRemarkList(List<Remark> remarkList) {
        this.remarkList = remarkList;
    }

    @Override
    public String toString() {
        String str = "";
        for (Remark i : this.remarkList) {
            str = str + i.toString();
        }
        return "RemarkResult{" +
                "mcode=" + mcode +
                ", msg='" + msg + '\'' +
                ", remarkList=" + str +
                '}';
    }
}
